/*

*** This do file creates the replication results for 

Death Penalty Abolition and the Ratification of the Second Optional Protocol, International Journal of Human Rights, 12 (1), 2009, pp. 3-21 

Eric Neumayer (LSE)																			

Please report any errors to e.neumayer@lse.ac.uk

*/

use "Article for International Journal of Human Rights.dta", replace

stset year, id(country) failure(ratification==1) origin(time y(1989)) enter(independence)
quietly stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop   ,  robust  efron nolog
su ratification councilofeurope leg_british vanhanen   muslimdummy freedomreversed yearspolityabove5 peaceyearsextended lnpop   lnrgdpch execleft lregionshrregimes if e(sample)
corr ratification councilofeurope leg_british vanhanen   muslimdummy freedomreversed yearspolityabove5 peaceyearsextended lnpop   lnrgdpch execleft lregionshrregimes if e(sample)

capture drop sca*
capture drop sch*
quietly stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    freedomreversed, scaledsch(sca*) schoenfeld(sch*)
stphtest, rank detail
stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    freedomreversed,  robust  efron nolog
outreg using c:\table2, replace eform  coefastr 3aster
capture drop sca*
capture drop sch*
quietly stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    freedomreversed lnrgdpch, scaledsch(sca*) schoenfeld(sch*)
stphtest, rank detail
stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    freedomreversed lnrgdpch,  robust  efron nolog
outreg using c:\table2, append eform  coefastr 3aster
capture drop sca*
capture drop sch*
quietly stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    freedomreversed lnrgdpch execleft, scaledsch(sca*) schoenfeld(sch*)
stphtest, rank detail
stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    freedomreversed lnrgdpch execleft,  robust  efron nolog
outreg using c:\table2, append eform  coefastr 3aster
capture drop sca*
capture drop sch*
quietly stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    freedomreversed lnrgdpch execleft lregionshrregimes, scaledsch(sca*) schoenfeld(sch*)
stphtest, rank detail
stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    freedomreversed lnrgdpch execleft lregionshrregimes,  robust  efron nolog
outreg using c:\table2, append eform  coefastr 3aster
capture drop sca*
capture drop sch*
quietly stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    yearspolityabove5 lnrgdpch execleft lregionshrregimes, scaledsch(sca*) schoenfeld(sch*)
stphtest, rank detail
stcox councilofeurope leg_british vanhanen   muslimdummy peaceyearsextended lnpop    yearspolityabove5 lnrgdpch execleft lregionshrregimes,  robust  efron nolog
outreg using c:\table2, append eform  coefastr 3aster
